<% content_for :head do %>
    <%= stylesheet_link_tag "fancybox/jquery.fancybox" %>
    <%= javascript_include_tag "fancybox/jquery.fancybox" %>
    <!-- load slider -->
    <script type="text/javascript" charset="utf-8">
        $(document).ready(function() {
            $(".fancybox").fancybox({
                openEffect	: 'none',
                closeEffect	: 'none'
            });
        });
    </script>
<% end %>

<h3>View visited track</h3>

<%= error_messages_for :visited %>
<% if flash[:error] %>
    <div style="color: red;" class="error"><%= flash[:error] %></div>
<% end %>
<div id="page">

  <% if flash[:alert] %>
      <p class="flash-error"><%= flash[:alert] %></p>
  <% end %>
  <% if flash[:notice] %>
      <p class="flash-notice"><%= flash[:notice] %></p>
  <% end %>
  <%= yield %>
</div>
<div class="intro-cartasur">
  <%= t 'cartasur.admin.visiteds.view' %>
</div>
<p>
  <%= form_for  @visited, :url => { :action => "update" } ,:html => { :multipart => true }  do |f| %>

      <%=  render "visitedsform", :f => f, :formtype => "show"  %>

  <% end-%>
</p>
